package Dao;

import Domain.User;
import Service.UserService;

import java.util.List;
import java.util.Map;

public interface UserDao {
    public int findTotalCount(Map<String, String[]> condition);

    public List<User> findByPage(int start, int rows, Map<String, String[]> condition);

    public List<User> findUserById(int id);

    public void updateUser(User user);

    public void deleteUser(int id);

    public List<User> UserLogin(User user);

    public void AddUser(User user);

    public List<User> FindUserByUsername(String username);

    public void changePassword(int id,String password);

    public void SetSecurity(int id,String question,String answer);

    public void UpdateUserInf(int id,String username,String header ,String tel ,String address);
}
